<style>
    table.tecspec {
        width: 100%;
        max-width: 100%;
        border-bottom: 1px solid #dddddd;
    }
    table.tecspec>tbody>tr>th,table.tecspec>tbody>tr>td{
        padding: 8px;
        line-height: 1.42857143;
        vertical-align: top;
        border-top: 1px solid #ddd;
    }
    table.tecspec>tbody>tr>th{
        border-right: 1px solid #ddd;
    }
</style>

<?php $this->load->view('templates/backend/header'); ?>

<?php

if(!empty($lists[0])){
    $info = $lists[0];
    
    ?>
        <table class="tecspec">
            <tbody>
            <tr>
              <th style="width:25%"><?php echo $this->lang->line('phone');?></th>
              <td width="75%"><?php echo $info->phone;?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('name');?></th>
              <td><?php echo ($info->name)?$info->name:'';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('sales_type');?></th>
              <td><?php echo ($info->type)?$info->type:'';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('province');?></th>
              <td><?php echo ($info->province)?$info->province:'';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('status');?></th>
              <td><?php echo ($info->phone_callstatus)?$info->phone_callstatus:'';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('area');?></th>
              <td><?php echo ($info->area)?$info->area:'';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('communication');?></th>
              <td><?php echo ($info->communication)?$info->communication:'';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('callquality');?></th>
              <td><?php echo ($info->callquality)?$info->callquality:'';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('interested');?></th>
              <td><?php echo ($info->interested)?$info->interested:'';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('frequency');?></th>
              <td><?php echo ($info->frequency)?$info->frequency:'';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('note_customers');?></th>
              <td><?php echo ($info->note_customers)?$info->note_customers:'';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('note_staffs');?></th>
              <td><?php echo ($info->note_staffs)?$info->note_staffs:'';?></td>
            </tr>
             <tr>
              <th><?php echo $this->lang->line('lastupdated');?></th>
              <td><?php echo ($info->lastupdated)?date('d-m-Y H:i:s',$info->lastupdated):'';?></td>
            </tr>
          </tbody>
        </table>
    <?php
} else {
    echo 'Không tìm thấy dữ liệu! Vui lòng thử lại sau';
}
die("");